import {BaseInput, BasePage} from "../../../../ts/type";
import {replace} from "../../../../ts/util";

export let columnCodeDetailInit = (page: BasePage) => {
    let detailModel = page.models.filter(m => 'detail' == m.formKey)[0]
    detailModel.formInputs.push(replace(new BaseInput('id', 'id'), {
        hidden: true
    }))
// field input auto
// #bind.field.fieldCode#
    detailModel.formInputs.push(replace(new BaseInput('属性编码', 'fieldCode'), {
        span: 12
    }))
// $bind.field.fieldCode$

// #bind.field.codeName#
    detailModel.formInputs.push(replace(new BaseInput('编码模板名称', 'codeName'), {
        span: 12
    }))
// $bind.field.codeName$


}